<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.onload=function(){
            //1.数组的合并
            // const kuaizi=['王太利','肖扬'];
            // const fenghuang=['曾毅','玲花'];
            // // const zuixuanxiao=kuaizi.concat(fenghuang);
            // const zuixuan=[...kuaizi,...fenghuang];
            // console.log(zuixuan);

            //2.数组的克隆
            // const sanzhihua=['E','G','M'];
            // const sanyecao=[...sanzhihua]; 
            // console.log(sanyecao);

            //3.将伪数组转为数组
            const divs=document.querySelectorAll('div');
            const arrs=[...divs];
            console.log(arrs);
        }
    </script>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
</body>
</html>